package com.lingjtx.auth.dao;

import com.lingjtx.common.core.token.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    UserVo selectUserByIdentifier(@Param("identifier") String identifier, @Param("table") String table);

    UserVo selectUserByUserUid(@Param("userId") Long userId, @Param("table") String table);

    Byte selectUserMaxScopeTypeByUserId(@Param("userId") Long userId);

    List<String> selectPermsListByAdminAccountAndUserId(@Param("userId") Long userId,
                                                        @Param("adminAccount") Byte adminAccount,
                                                        @Param("companyId") Long companyId);
}
